// 证件类型
export function getCertiTypeEnum(isOnlyId) {
    if(isOnlyId){
        return [ {
            label: window.LangMessage.ID_card || "身份证",
            value: "SHENFENZHENG",
        }]
    }
    const list = [
        {
            label: window.LangMessage.ID_card || "身份证",
            value: "SHENFENZHENG",
        },{
            label: window.LangMessage.passport || "护照",
            value: "HUZHAO",
        },{
            label: window.LangMessage.residence_booklet || "户口簿",
            value: "HUKOUBU",
        },{
            label: window.LangMessage.military_identity_card || "军人身份证",
            value: "JUNGUANZHENG",
        },{
            label: window.LangMessage.armed_police_identity_card || "武装警察身份证",
            value: "POLICYID",
        },{
            label: window.LangMessage.HK_Macao_to_mainland || "港澳居民来往内地通行证",
            value: "GAJMLAIWANGCERTI",
        },{
            label: window.LangMessage.TW_to_mainland || "台湾居民来往内地通行证",
            value: "TAIBAOCERTI",
        },{
            label: window.LangMessage.foreigner_mainland || "外国人永久居留身份证",
            value: "WAIGUORENCERTI",
        }
    ];
    return list;
}

// 证件类型（英文版）
export function getCertiTypeEnglish() {
    const list = [
        {
            label: "Identification Card",
            value: "SHENFENZHENG",
        },{
            label: "Passport",
            value: "HUZHAO",
        }
    ];
    return list;
}

// 性别
export function getGenderEnum() {
    const list = [
        {
            label: window.LangMessage.gender_male || "男性",
            value: 'MALE',
        },{
            label: window.LangMessage.gender_female || "女性",
            value: 'FMAIL',
        }
    ];
    return list;
}

// 性别 (英文版)
export function getGenderEnglish() {
    const list = [
        {
            label: "Male",
            value: 'MALE',
        },{
            label: "Female",
            value: 'FMAIL',
        }
    ];
    return list;
}

// 关系类型
export function getRelationEnum() {
    const list = [
        {
            label: window.LangMessage.self || "本人",
            value: "SELF",
        },{
            label: window.LangMessage.spouse || "配偶",
            value: "SPOUSE",
        },{
            label: window.LangMessage.children || "子女",
            value: "CHILDREN",
        },{
            label: window.LangMessage.parents || "父母",
            value: "PARENTS",
        },{
            label: window.LangMessage.other || "其他",
            value: "OTHER",
        },
    ];
    return list;
}

// 关系类型 (英文版)
export function getRelationEnglish() {
    const list = [
        {
            label: "Me",
            value: "SELF",
        },{
            label: "SPOUSE",
            value: "SPOUSE",
        },{
            label: "CHILDREN",
            value: "CHILDREN",
        },{
            label: "PARENTS",
            value: "PARENTS",
        },{
            label: "OTHER",
            value: "OTHER",
        },
    ];
    return list;
}

// 保额
export function getSA() {
    const list = [
        {
            label:'50万',
            value:'500000'
        },{
            label:'200万',
            value:'2000000'
        },{
            label:'500万',
            value:'5000000'
        }
    ]
    return list;
}

// 保障期间
export function getCoveragePeriod() {
    const list = [
        {
            label:'20年',
            value:'20'
        }
    ]
    return list;
}

// 缴费年限
export function getPaymentPeriod() {
    const list = [
        {
            label: '10年',
            value: '10',
        },{
            label: '15年',
            value: '15',
        },{
            label: '20年',
            value: '20',
        }  
    ]
    return list;
}

// 缴别
export function getPayMode() {
    const list = [
        {
            label: window.LangMessage.year_pay || '年缴',
            value: 'YEAR',
        },{
            label: window.LangMessage.Halfyear_pay || '半年缴',
            value: 'HALFYEAR',
        },{
            label: window.LangMessage.quarter_pay || '季缴',
            value: 'QUARTER',
        },{
            label: window.LangMessage.month_pay || '月缴',
            value: 'MONTH',
        }
    ]
    return list;
}

// 缴别  goodId=25 特殊处理
export function getPayMode25() {
    const list = [
        {
            label: window.LangMessage.year_pay || '年缴',
            value: 'YEAR',
        },{
            label: window.LangMessage.month_pay || '月缴',
            value: 'MONTH',
        }
    ]
    return list;
}

// 给付期间约定类型
export function getBenefitPeriod() {
    const list = [
        {
            label: window.LangMessage.get_right_now || '立即领取',
            value: 'RIGHTNOW',
        },{
            label: window.LangMessage.start_get_week_year_day || '开始领取时间-保单周年日',
            value: 'STARTDRAW_POLICYANNIVERSARY',
        },{
            label: window.LangMessage.start_get_age || '开始领取时间-被保人年龄（保单周年日）',
            value: 'STARTDRAW_INSUREDAGE',
        },{
            label: window.LangMessage.get_year || '领取时限-年满型',
            value: 'DRAWLIMIT_YEARFULL',
        },{
            label: window.LangMessage.get_all_life_include || '领取时限-领终身（含保证期间）',
            value: 'DRAWLIMIT_WHOLELIFE_GUARANTEE',
        },{
            label: window.LangMessage.get_all_life_not_include || '领取时限-领终身（不含保证期间）',
            value: 'DRAWLIMIT_WHOLELIFE_NOTGUARANTEE',
        },{
            label: window.LangMessage.get_year_full || '领取时限-岁满型',
            value: 'DRAWLIMIT_SUIFULL',
        },{
            label: window.LangMessage.get_gurantee_year || '领取时限-保证期间岁满型',
            value: 'DRAWLIMIT_SUIFULL_GUARANTEE',
        },{
            label: window.LangMessage.the_earlist_get_time || '最早开始领取时点-保单周年日',
            value: 'EARLIESTDRAW_POLICYANNI',
        },{
            label: window.LangMessage.the_last_get_times || '最晚开始领取时点-被保人年龄（保单周年日）',
            value: 'LATESTDRAW_INSUREDAGE',
        },{
            label: window.LangMessage.annual_get_frequency_once || '年金领取频率-一次性领取',
            value: 'ANNUITYFREQ_ONETIME',
        },{
            label: window.LangMessage.annual_get_frequency_year || '年金领取频率-每年领取',
            value: 'ANNUITYFREQ_EVERYYEAR',
        }
    ]
    return list;
}

// 是否有社保
export function getSocialInsurance() {
    const list = [
        {
            label: 'YES',
            value: 'YES',
        },{
            label: 'NO',
            value: 'NO',
        }
    ]
    return list;
}
export function getEnToCn(){
    const enToCn = {
    	see_doctor: "就医",
        suddenness: "意外",
        death: "身故",
		outpatient_service: "门诊",
    	emergency_service: "急诊",
    	special_procurement: "特需",
    	hospitalized:"住院",
    	traffic_accident:"交通意外",
    	injured_by_other:"被他人误伤",
    	unintentional_injury:"其他意外伤害",
    	medical_death:"医疗身故",
    	unexpected_death:"意外身故",
    	cash: "Cash",
        credit_card: "Credit Card",
        bank_card: "Bank Transfer",
        ali_pay: "Alipay",
        wx_pay: "Wechat Pay",
        account: "Account",
        bonus_point_deductible: "积分抵扣",
        coupon_deductible: "优惠券抵扣",
        insurance_pay: "保险公司代付",
        agent_commission_pay: "代理人佣金代付",
        policy_balance: "保单余额抵扣",
        original_back: "原卡原退"
	}
    return enToCn;
}
export function getClaimDocumentType(){	
    const typeList = {
        ID_CARD: {
            id: '1',
            text: "ID Card Copy of Insured(Front & Back)"
        },
        CLINICAL_HISTORY: {
            id: '2',
            text: "Medical records"
        },
        MEDICAL_INVOICE: {
            id: '3',
            text: "Medical Invoice"
        },
        DIAGNOSIS_CERTIFICATE_REPORT: {
            id: '4',
            text: "Diagnostic Certificate"
        },
        ADMISSIONS_RECORD: {
            id: '5',
            text: "Admission Records"
        },
        DISCHARGE_SUMMARY: {
            id: '6',
            text: "Discharge Summary"
        },
        OPERATION_RECORD: {
            id: '7',
            text: "Split Sheet (if part of claim already paid from third party company)"
        },
        TRAFFIC_ACCIDENTS_REPORT: {
            id: '8',
            text: "Traffic Liability Certificate"
        },
        POLICE_CALL_REPORT: {
            id: '9',
            text: "Police Alarm Materials"
        },
        POLICE_SETTLE_REPORT: {
            id: '10',
            text: "Police Settle Materials"
        },
        DEATH_ID_CARD: {
            id: '11',
            text: "Death ID Card Copy of Insured(Front & Back)"
        },
        DEATH_CERTIFICATE: {
            id: '12',
            text: "Death Certificate"
        },
        HOUSEHOLD_REGISTRATION_CANCELLATION: {
            id: '13',
            text: "Hukou Cancellation Certificate"
        },
        CREMATION_CERTIFICATE: {
            id: '14',
            text: "Cremation Certificate"
        },
        ACCIDENTAL_DEATH: {
            id: '19',
            text: "Accident Proof"
        },
        OPERATION_RECORD_PROCESS: {
            id: '15',
            text: "Surgical Records (if performed)"
        },
        INSPECTION_REPORT: {
            id: '16',
            text: "Inspection Report"
        },
        
        COST_DETAIL: {
            id: '17',
            text: "Expense Details List"
        },
        OTHER_SUPPORT_FILE: {
            id: '18',
            text: "Other Supporting Materials (such as Drug List)"
        },
        DISEASE_DIAGNOSIS_BOOK: {
            id: '20',
            text: "Hospital Death Notice & Medical Certificate"
        }
    };
    return typeList;
}
export function bankKeyMap(){
    const bankKeyMap = {
			bank:[{
				keyCode:"userName",
				text:Lang.name || "姓名",
			},{
				keyCode:"cardNo",
				text:Lang.bankcard_no || "银行卡号",
			},{
				keyCode:"bankName",
				text:Lang.bank_of || "开户银行",
				
			}],
			alipay:[{
				keyCode:"userName",
				text:Lang.name || "姓名",
			},{
				keyCode:"aliNum",
				text:Lang.alipay_account || "支付宝账户",
			}],
			myAccount:[{
				keyCode:"accountName",
				text:Lang.account_name || "账户名",
			},{
				keyCode:"accountNum",
				text:Lang.account_no || "账户号",
			}]
		}
        return bankKeyMap;
}
export function CompanyTypeEnum(){
    const list = [
        {
            label: '娱乐场所',
            value: 'ENTERTAINMENT',
        },{
            label: '旅馆',
            value: 'HOTLE',
        },{
            label: '健身场所',
            value: 'GYMNASIUM',
        },{
            label: '餐饮业',
            value: 'CATERINGINDUSTRY',
        }
    ]
    return list;
}
export function BuildingStructTyepEnum(){
    const list = [
        {
            label: '钢结构',
            value: 'STEEL',
        },{
            label: '钢混',
            value: 'FERROCONCRETE',
        },{
            label: '砖混',
            value: 'BRICKCONCRETE',
        },{
            label: '其它',
            value: 'OTHERS',
        }
    ]
    return list;
}
export function PropertyTypeEnum(){
    const list = [
        {
            label: '自由',
            value: 'OWN',
        },{
            label: '租赁',
            value: 'RENT',
        }
    ]
    return list;
}
export function UserTypeEnum(){
    const list = [
        {
            label: '个人',
            value: 'PERSONAL',
        },{
            label: '公司',
            value: 'COMPANY',
        }
    ]
    return list;
}
export function YesNoEnum(){
    const list = [
        {
            label: window.LangMessage.yes || '是',
            value: 'YES',
        },{
            label: window.LangMessage.no || '否',
            value: 'NO',
        }
    ]
    return list;
}


